package Mangos::DB::Mangos::GameEvent;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'game_event',

    columns => 
    [
        entry       => { type => 'integer', not_null => 1 },
        start_time  => { type => 'timestamp', not_null => 1 },
        end_time    => { type => 'timestamp', not_null => 1 },
        occurence   => { type => 'bigint', default => 5184000, not_null => 1 },
        length      => { type => 'bigint', default => 2592000, not_null => 1 },
        holiday     => { type => 'integer', default => '0', not_null => 1 },
        description => { type => 'varchar', length => 255 },
    ],

    primary_key_columns => [ 'entry' ],
);

1;

package Mangos::DB::Mangos::GameEvent::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::GameEvent' }

__PACKAGE__->make_manager_methods('game_event');

1;
